updating oE move_file
move_file
include filesys.e namespace filesys public function move_file(sequence src, sequence dest, integer overwrite = 0)
moves a file to another location.
Parameters:
- src : a sequence, the name of the file or directory to move
- dest : a sequence, the new location for the file
- overwrite : an integer, 0 (the default) to prevent overwriting an existing destination file, 1 to overwrite existing destination file
Returns:
An integer, 0 on failure, 1 on success.
Comments:
If overwrite was requested but the move fails, any existing destination file is preserved.
See Also:
Not Categorized, Please Help
|